//let str = '3*3-2'
//console.log(str)
//console.log(eval(str))
//console.log(eval('12+3+4-56+7+89'))

let a = ['', '+', '-']
let j = 0
let ok = new Array(11)
let m = 0
while (true) {
    let s = '1'
    for (let i = 2; i <= 9; i++) {
        s += `${a[Math.round(Math.random() * 2)]}${i}`
    }
    ++m
    if(eval(s) === 100 && ok.indexOf(s)===-1){
        ok[j] = s
        console.log(`ok[${j}](${ok[j]}) = 100(${m})`)
        j++
        m = 0
    }
    if(j>=11) break
}
